import { http } from '@/utils/request'

// 我的专题练习试题[x]
export function selectTopicQuestion(params: { exerId: any }) {
  return http.request({
    url: `small/examStudy/selectTopicQuestion`,
    method: 'GET',
    params
  })
}

// 我的专题练习列表[x]
export function selectTopicExmExerList(params: { topicId: number | string; pageNumber: number; pageSize: number }) {
  return http.request({
    url: `/small/examStudy/selectTopicExmExerList/${params.topicId}`,
    method: 'GET'
  })
}

// 我的题库练习试题[x]
export function selectExmQuestion(params: { questionTypeId: number | string }) {
  return http.request({
    url: `/small/examStudy/selectExmQuestion`,
    method: 'GET',
    params
  })
}

// 题库列表[x]
export function selectExmQuestionTypeList() {
  return http.request({
    url: `/small/examStudy/selectExmQuestionTypeList`,
    method: 'GET'
  })
}

// 题库练习次数[x]
export function selectExmQuestionTypeCount() {
  return http.request({
    url: `/small/examStudy/selectExmQuestionTypeCount`,
    method: 'GET'
  })
}

// 专题设置列表[x]
export function selectExerTopicList() {
  return http.request({
    url: `/small/examStudy/selectExerTopicList`,
    method: 'GET'
  })
}

// 题库增加练习次数[x]
export function addExmQuestionTypeCount() {
  return http.request({
    url: `/small/examStudy/addExmQuestionTypeCount`,
    method: 'GET'
  })
}
